package com.wy.authority.service.impl;

import com.wy.authority.entity.Msg;
import com.wy.authority.mapper.MsgMapper;
import com.wy.authority.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/2/5 13:38
 * @Description:
 */
@Service
public class MsgServiceImpl implements MsgService {
    @Autowired
    private MsgMapper msgMapper;

    @Override
    public int insertmsg(Msg msg) {
        return msgMapper.insertmsg(msg);
    }

    @Override
    public int delete(int id) {
        return 0;
    }

    @Override
    public List<Msg> select() {
        return msgMapper.select();
    }

    @Override
    public List<Msg> selectby_ord(String search,String times) {
        return msgMapper.selectby_ord(search,times);
    }

    @Override
    public int update(Msg msg) {
        return msgMapper.update(msg);
    }


}
